<?php
namespace Home\Model;
use Think\Model;
Class IndexModel //extends Model
{
    /**
     * 查询用户单条数据
     * @param $condition
     * @return mixed
     */
    public function get_user_one_info($condition)
    {
        return M("section_user")->where($condition)->find();
    }

    /**
     * 查询用户数据
     * @param $condition
     * @return mixed
     */
    public function get_user_info($condition,$limit = '',$order = "user_updated_time desc,user_id desc")
    {
        return M("section_user")->where($condition)->limit($limit)->order($order)->select();
    }

    /**
     * 添加单条用户数据
     * @return \Model|Model
     */
    public function add_user_info($res,$condition = '')
    {
        return M("section_user")->where($condition)->add($res);
    }
	
		//短信日志表
	public function get_user_smslog($condition)
	{
		return M("section_code_log")->where($condition)->find();
		
	}

}


?>